package com.eati.cm.utils;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.bind.MissingServletRequestParameterException;

public class HttpUtil {
	public static String checkGetParam(HttpServletRequest req, String paramName) throws MissingServletRequestParameterException {
		if(req.getParameter(paramName) == null) {
			throw new MissingServletRequestParameterException(paramName, "String");
		}
		return req.getParameter(paramName);
	}
}
